package com.pdd.mall.service;

import com.pdd.mall.dto.AddressParam;
import com.pdd.mall.entity.Address;

import java.util.List;

/**
 * 地址服务接口
 */
public interface AddressService {
    
    /**
     * 获取用户的地址列表
     */
    List<Address> getAddressList(Long userId);
    
    /**
     * 获取地址详情
     */
    Address getAddress(Long id, Long userId);
    
    /**
     * 添加地址
     */
    Address addAddress(AddressParam param, Long userId);
    
    /**
     * 更新地址
     */
    Address updateAddress(Long id, AddressParam param, Long userId);
    
    /**
     * 删除地址
     */
    boolean deleteAddress(Long id, Long userId);
}
